Ext.define('Oa.store.SupplierStore', {
    extend: 'Ext.data.Store',
    fields :['id','name','goodsName','type','price','address','contact','phone','fax','postcode','file'],
    autoLoad: true,
    proxy: {
        type:'ajax',
        url:'../supplierAction/getSuppliers.do',
        reader:{
            type:'json',
            root:'list',
            successProperty: 'success'
        }
    },
    data:[]
});